package com.cc.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.cc.infrastructure.db.InserttableDb;


@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("前端传递参数")
public class InserttableDto {


  /**
   *
   **/
  @ApiModelProperty("")
  private String id;
  /**
   *
   **/
  @ApiModelProperty("")
  private String supplyId;
  /**
   * 供应商名字
   **/
  @ApiModelProperty("供应商名字")
  private String supplyName;
  /**
   *
   **/
  @ApiModelProperty("")
  private String amount;

  public static InserttableDb convertInserttableDbByInserttableDto(InserttableDto inserttableDto) {
    InserttableDb inserttabledb = new InserttableDb();
    inserttabledb.setId(inserttableDto.getId());
    inserttabledb.setSupplyId(inserttableDto.getSupplyId());
    inserttabledb.setSupplyName(inserttableDto.getSupplyName());
    inserttabledb.setAmount(inserttableDto.getAmount());
    return inserttabledb;
  }
}